1
general::
Make the preliminary preparations or do the preliminary research for something. For example, The department head did all the spadework for this agreement. This expression transfers the heavy spading required to prepare for planting to other kinds of preparation. [c. 1900]
American Heritage Idioms